package com.ayitubie.refuelweb.mapper;

import com.ayitubie.refuelweb.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getAllUser();

    int insertUser(User user);

    User login(@Param("userName") String userName, @Param("password") String password);

    User getUserByUserId(String userId);

    int checkUserExist(String userName);
}
